
// ImageShowMFCView.h : interface of the CImageShowMFCView class
//


#pragma once

#include "GraphicImagePresenter.h"
#include "GraphicImageZoomController.h"
#include "GraphicImageRotateController.h"
class CImageShowMFCView : public CView
{
protected: // create from serialization only
	CImageShowMFCView();
	DECLARE_DYNCREATE(CImageShowMFCView)

// Attributes
public:
	CImageShowMFCDoc* GetDocument() const;

// Operations
public:
	int flag;
// Overrides
public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// Implementation
public: 
	virtual ~CImageShowMFCView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
 
protected:
	HPMIP::GraphicImagePresenter *m_presenter;
	HPMIP::GraphicImageZoomController *m_zoom;
	HPMIP::GraphicImageRotateController *m_rot;

// Generated message map functions
protected:
	afx_msg void OnFilePrintPreview();
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
};

#ifndef _DEBUG  // debug version in ImageShowMFCView.cpp
inline CImageShowMFCDoc* CImageShowMFCView::GetDocument() const
   { return reinterpret_cast<CImageShowMFCDoc*>(m_pDocument); }
#endif

